home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM A / PD-ROM A.iso / Utility / Virus Checkers / Disinfectant 2.5.1 / Source Code for 2.4 / Source Code / unmount.a < prev    next >
Encoding:
Text File  |  1989-12-28  |  1003 b   |  29 lines  |  [TEXT/MPS ]

  1.     title    'unmount'
  2.     
  3. ;_____________________________________________________________________
  4. ;
  5. ; unmount.a - UnmountVol Trap Patch.
  6. ;
  7. ; Copyright © 1988, 1989, 1990 Northwestern University.  Permission is granted
  8. ; to use this code in your own projects, provided you give credit to both
  9. ; John Norstad and Northwestern University in your about box or document.
  10. ;    
  11. ; This routine is used to patch the UnmountVol trap when the standard
  12. ; save file dialog is presented if the report becomes full during a
  13. ; disk scan.  It simply returns to the caller with the function result
  14. ; noErr, preventing the volume unmount.  (See routine DoSave in main.c).
  15. ;
  16. ; The problem is that the standard file package attempts to unmount
  17. ; volumes before returning to the caller.  We must prevent this during
  18. ; disk scans.
  19. ;
  20. ; Entry:    (a0) = pointer to parameter block.
  21. ;
  22. ; Exit:        (d0) = function result = noErr.
  23. ;_____________________________________________________________________
  24.  
  25.  
  26. Unmount        func    export
  27.         clr.w    d0
  28.         rts
  29.         end